<template>
  <div id="app">
    <el-backtop :bottom="30"></el-backtop>
    <nav></nav>
    <router-view />
  </div>
</template>

<script>
export default {
  mounted() {
    setTimeout(() => {
      const config = {
        pluginRootPath: 'live2dw/',
        pluginJsPath: 'lib/',
        pluginModelPath: 'live2d-widget-model-hijiki/assets/',
        tagMode: false,
        debug: false,
        model: {
          jsonPath:
            '../live2dw/live2d-widget-model-hijiki/assets/hijiki.model.json',
        },
        display: { position: 'right', width: 100, height: 200 },
        mobile: { show: true },
        log: false,
        dev: {
          border: false, //canvas周围是否显示边界
        },
      }
      window.L2Dwidget.init(config)
    })
  },
}
</script>
<style lang="stylus">
*
 margin 0
 padding 0
</style>
